//
//  detailconstellation.m
//  Final
//
//  Created by iD Student on 7/30/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "detailconstellation.h"
#import "FinalViewController.h"
#import "urladdress.h"
@interface detailconstellation ()

@end

@implementation detailconstellation
@synthesize imageview;
@synthesize name;
@synthesize age;
@synthesize gender;
;
@synthesize textview;


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [self setTextview:nil];
    [self setName:nil];
    [self setAge:nil];
    [self setImageview:nil];
    [self setName:nil];
    [self setAge:nil];
    [self setGender:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)Back:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
    
}

- (IBAction)seemore:(id)sender {
    
    NSString*urladdress=@"http://astro.sina.com.cn";
    
    NSURL*url=[NSURL URLWithString:urladdress];
    NSURLRequest*reqobj=[NSURLRequest requestWithURL:url];
    [Webview loadRequest:reqobj];
}
@end
